package com.ruoyi.fuw.service.impl;

import java.util.List;

import com.ruoyi.fuw.domain.FuwMessage;
import com.ruoyi.fuw.mapper.FuwMessageMapper;
import com.ruoyi.fuw.service.IFuwMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 消息记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-11-14
 */
@Service
public class FuwMessageServiceImpl implements IFuwMessageService
{
    @Autowired
    private FuwMessageMapper fuwMessageMapper;

    /**
     * 查询消息记录
     * 
     * @param uId 消息记录主键
     * @return 消息记录
     */
    @Override
    public FuwMessage selectFuwMessageByUId(Long uId)
    {
        return fuwMessageMapper.selectFuwMessageByUId(uId);
    }

    /**
     * 查询消息记录列表
     * 
     * @param fuwMessage 消息记录
     * @return 消息记录
     */
    @Override
    public List<FuwMessage> selectFuwMessageList(FuwMessage fuwMessage)
    {
        return fuwMessageMapper.selectFuwMessageList(fuwMessage);
    }

    /**
     * 新增消息记录
     * 
     * @param fuwMessage 消息记录
     * @return 结果
     */
    @Override
    public int insertFuwMessage(FuwMessage fuwMessage)
    {
        return fuwMessageMapper.insertFuwMessage(fuwMessage);
    }

    /**
     * 修改消息记录
     * 
     * @param fuwMessage 消息记录
     * @return 结果
     */
    @Override
    public int updateFuwMessage(FuwMessage fuwMessage)
    {
        return fuwMessageMapper.updateFuwMessage(fuwMessage);
    }

    /**
     * 批量删除消息记录
     * 
     * @param uIds 需要删除的消息记录主键
     * @return 结果
     */
    @Override
    public int deleteFuwMessageByUIds(Long[] uIds)
    {
        return fuwMessageMapper.deleteFuwMessageByUIds(uIds);
    }

    /**
     * 删除消息记录信息
     * 
     * @param uId 消息记录主键
     * @return 结果
     */
    @Override
    public int deleteFuwMessageByUId(Long uId)
    {
        return fuwMessageMapper.deleteFuwMessageByUId(uId);
    }
}
